<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
	require(['barcoder'], function(barcoder){
		barcoder.scan({
			success : function(type, result){
				if(/\w+/.test(result)){
					barcoder.close();
					loader.forward({
						el : 'iframe.html',
						frame : result
					});
				}
			}
		});
	});
</script>
</body>
</html>